Verify Reset Password Code API
POST /verifyResetPasswordCode
Description
This API endpoint allows users to verify the reset password code sent to their email. This verification is necessary before allowing the user to reset their password.
Request Body
The request utilizes GraphQL to perform the verifyResetPasswordCode
mutation.
Mutation:
mutation verifyResetPasswordCode ($email: String!, $verificationCode: String!) {
verifyResetPasswordCode (email: $email, verificationCode: $verificationCode)
}
Variables:
{
"email": "<User_Email_Address>",
"verificationCode": "<Reset_Password_Code>"
}
- email (String): The email address of the user who requested the password reset.
- verificationCode (String): The reset password code sent to the user's email.
Response:
-
Success (200 OK):
- If the verification is successful, no additional data is returned, and the user can proceed to reset their password.
-
Error (4XX/5XX):
- Appropriate error messages and status codes will be returned in cases of invalid email, incorrect verification code, expired code, or server errors.
Note:
Ensure that the reset password code is the one received via email and is used before it expires. The email should match the one that requested the reset password code.